package com.example.smartlearning.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.smartlearning.entity.AnswerEntity;
import com.example.smartlearning.entity.CarouselEntity;

import java.util.List;

public interface AnswerDao extends BaseMapper<AnswerEntity> {
    List<AnswerEntity> selectAllByTab(String tab, int start, int limit);//根据标签查询

    String deleteAnswer(int answerId);//根据id删除

    String addAnswer(String question, String answerA, String answerB, String answerC, String answerD, String answerRight, String tab, String createTime, int answerUserId);//新增一个问题

}
